package com.fms.player.mvc.command
{
	import com.fms.player.mvc.FMSFacade;
	import com.fms.player.ui.vod.VODPlayer;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	public class VodCmd extends SimpleCommand
	{
		public function VodCmd()
		{
			super();
		}
		
		override public function execute(notification:INotification):void
		{
			//内部测试登陆用的，正式版是通过传参决定实例播放器
			FMSFacade.getInstance().mainUI.removeLoginUI();
			
			var player:VODPlayer = new VODPlayer();
			player.width = 1160;
			player.height = 555;
			FMSPlayer(notification.getBody()).addElement(player);
		}
	}
}